package com.apiserver.data.mybatis.model;


import com.apiserver.data.annotation.IdStrategy;
import com.apiserver.data.annotation.Style;
import lombok.*;
import org.apache.commons.lang.StringUtils;

import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class EntityTable {

    private String sqlColumns;

    private String tableName;

    private Class<?> entityClass;


    //字段转换方式
    private Style style;

    //主键
    private String PKColumn;

    //主键
    private String PKProperty;
    //主键策略
    private IdStrategy idStrategy;


    //key:属性名, value:数据库列名
    private Map<String, String> propertyColumn;




    public EntityTable(Class<?> entityClass) {
        super();
        this.entityClass = entityClass;
    }


}
